import request from '@/utils/request'

export function fetchList(params) {
  return request({
    url: '/v1/cnzz/list',
    method: 'get',
    params
  })
}

export function fetchQudao() {
  return request({
    url: '/settle/cnzz/get_all_cnzz_user.html',
    method: 'get'
  })
}

export function fetchDaili() {
  return request({
    url: '/settle/index/get_all_agent',
    method: 'get'
  })
}

export function update(data) {
  return request({
    url: '/settle/cnzz/data_save.html',
    method: 'post',
    data
  })
}

export function update_cnzz_report(data) {
  return request({
    url: '/v1/update/cnzz/report',
    method: 'post',
    data
  })
}

export function exprot_cnzz_report(data) {
  return request({
    url: '/v1/exprot/cnzz',
    method: 'post',
    data
  })
}
